<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>条件渲染</title>
    <script src="vue.js"></script>
</head>
<body>
<div id="app">
    <div v-if="isShow">Hello world</div>
    <div v-show="isShow">Hello world</div>
    <div v-if="isShow">
        用户名：<input type="text" key="username">
    </div>
    <div v-else>
        邮箱名：<input type="text" key="email">
    </div>
</div>
<script>
    var vm = new Vue({
        el:"#app",
        data:{
            isShow:false
        },
        methods:{}
    });
</script>
</body>
</html>